import React from 'react'
import Sun from './Sun'
import { useSelector } from 'react-redux'

export default function Child() {
  const { name, time } = useSelector((state) => state.goods)

  return (
    <div>
      <h5>
        Child-{name}-{time}
      </h5>
      <Sun></Sun>
    </div>
  )
}
